package com.monkey4cloud.demo;

public class ThreadDemo {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("ok");
            }
        }).start();

        new Thread(() -> System.out.println("ok1")).start();

        Runnable runnable = () -> System.out.println("ok");

        Runnable runnable1 = () -> System.out.println("ok");

    }
}
